import { useNavigate } from 'react-router-dom';
import { Typography, Button } from 'antd';
import styles from './Home.module.scss';
import { MANAGE_LIST } from '../router';
const { Title, Paragraph } = Typography;
const Home = () => {
	const nav = useNavigate();

	return (
		<div className={styles.wrap}>
			<div className={styles.info}>
				<Title>东东问卷 | 在线投票</Title>
				<Paragraph>
					已累计创建问卷 200 份，发布问卷 150 份，收到答卷 580 份
				</Paragraph>
				<Button type="primary" onClick={() => nav(MANAGE_LIST)}>
					开始使用
				</Button>
			</div>
		</div>
	);
};

export default Home;
